import time
from python_baway.common.xcommon import sep

xstr = "2016-05-05 20:28:54"
print(xstr)
FMT = '%Y-%m-%d %H:%M:%S'

sep('st')
st = time.strptime(xstr, FMT)
st2str = time.strftime(FMT, st)
print(st2str)

sep('timestamp')
ts = time.mktime(st)
print(time.ctime(ts))
